package com.saicmotor.springboot_demo.config;

import com.saicmotor.springboot_demo.model.Role;
import com.saicmotor.springboot_demo.model.User;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
@ConfigurationProperties(prefix="config")
public class RoleConfig {
    private List<Role> role = new ArrayList<>();

    public List<Role> getRole() {
        return role;
    }
    public void setRole(List<Role> role) {
        this.role = role;
    }
}
